package com.kady.Dao;

import com.kady.entity.Food;
import com.kady.entity.PageInfo;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

public interface FoodDao {
    List<Map<String,Object>> selectFoodList(String keyword, PageInfo pageInfo, String typeId) throws SQLException;

    void addFood(Object...objs) throws SQLException;

    void updateFood(Object...objs) throws SQLException;

    Food selectFood(String food_id) throws SQLException;

    void deleteFood(String foodId) throws SQLException;

    List<Food> selectFoodByTypeId(long typeId) throws SQLException;

    long calListCount(String keyword,String typeId) throws SQLException;

    Food selectFoodByName(String name) throws SQLException;
}
